package tetris.pieces;

import java.awt.Color;
import java.awt.Point;

/**
 * This class represents my S shape.
 * 
 * @author Agari NLN (agarin@uw.edu)
 * @version 1.0
 */
public class S_Shape extends AbstractShape
{
  /**
   * Setting the default and rotated shapes for my S shape.
   * 
   * @param the_position The position relative to the board.
   */
  public S_Shape(final Point the_position)
  {
    super(the_position);
    makeSShape();
    my_color = Color.GREEN;
  }
  
  /**
   * Setting the default and rotated shapes for my S shape.
   */
  private void makeSShape()
  {
    my_north_shape[1][0] = true;
    my_north_shape[2][0] = true;
    my_north_shape[0][1] = true;
    my_north_shape[1][1] = true;

    my_east_shape[0][0] = true;
    my_east_shape[0][1] = true;
    my_east_shape[1][1] = true;
    my_east_shape[1][2] = true;
    
    my_south_shape[1][0] = true;
    my_south_shape[2][0] = true;
    my_south_shape[0][1] = true;
    my_south_shape[1][1] = true;
    
    my_west_shape[0][0] = true;
    my_west_shape[0][1] = true;
    my_west_shape[1][1] = true;
    my_west_shape[1][2] = true;

  }
}
